﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PayWay_TenPay_Edit.aspx.cs" Inherits="CNVP.JShop.Web.Admin.PayWay_TenPay_Edit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
            <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="IE=7" http-equiv="X-UA-Compatible" />
    <link href="CSS/Edit.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script type="text/javascript" src="../Scripts/Common.js"></script>
    <script type ="text/javascript">
        $(function () {
            $("#btUp").click(function () {
                var $txtColumnName = $("#txtColumnName");
                var $txtOrderID = $("#txtOrderID");
                if ($txtColumnName.val() == "") {
                    alert("请输入支付方式名称！");
                    $txtColumnName.focus();
                    return false;
                }
                var $txtText = $("#txtText");
                if ($txtText.val().length > 2000) {
                    alert("简介过长，请不要超过2000字！");
                    $txtText.focus();
                    return false;
                }
                if ($txtOrderID.val() == "") {
                    alert("请输入排序！");
                    $txtOrderID.focus();
                    return false;
                }
                else if (!IsInteger($txtOrderID.val())) {
                    alert("排序格式不正确！");
                    $txtOrderID.focus();
                    return false;
                }
                return true;
            });

        })
   </script>
</head>
<body>
    <form id="form1" runat="server">
        <div class="Content">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="cell">
                <tr>
                    <td class="cell_group">
                        <img src="Images/ListIconTitle.jpg" alt="" />&nbsp;您的位置：<a href="PayWayList.aspx">支付管理</a><asp:Label ID="lbTitle" runat="server"></asp:Label>
                    </td>
                </tr>
                </table>
                <table border="0" cellpadding="0" cellspacing="0" class="division">
                         <tr>
                            <th>
                                 接口类型:</th>
                            <td>
                                 <asp:RadioButtonList ID="rblAlipayInInterfaceType" runat="server" RepeatDirection="Horizontal" Width="300px" CssClass="RadioButtonListTable">
                                    <asp:ListItem Selected="True" Value="1">担保接口</asp:ListItem>
                                    <asp:ListItem Value="0">即时接口</asp:ListItem>
                                </asp:RadioButtonList>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 支付方式名称:</th>
                            <td>
                                 <asp:TextBox ID="txtColumnName" runat="server" MaxLength="50" />
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 平台商户号/QQ:</th>
                            <td>
                                 <asp:TextBox ID="txtPayAccountNumber" runat="server" MaxLength="50"  />
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 卖家商户号/商户号:</th>
                            <td>
                                 <asp:TextBox ID="txtPayParterID" runat="server" MaxLength="50"  />
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 密钥(key):</th>
                            <td>
                                 <asp:TextBox ID="txtPayKey" runat="server" Width="200px" MaxLength="100"  />
                                </td>
                        </tr>
                         <tr>
                            <th>
                                 简&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;介:</th>
                            <td>
                                 <asp:TextBox ID="txtText" runat="server" Height="100px" TextMode="MultiLine" 
                                     Width="455px" />
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 是否显示:</th>
                            <td>
                                 <asp:RadioButtonList ID="rblIsShow" runat="server" RepeatDirection="Horizontal" Width="100px" CssClass="RadioButtonListTable">
                                    <asp:ListItem Selected="True" Value="1">是</asp:ListItem>
                                    <asp:ListItem Value="0">否</asp:ListItem>
                                </asp:RadioButtonList>
                                </td>
                        </tr>
                        <tr>
                            <th>
                                 排&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;序:</th>
                            <td>
                                  <asp:TextBox ID="txtOrderID" runat="server" />
                                </td>
                        </tr>
                    </table>
                    <div class="EditBtn">  
                     <asp:Button ID="btUp" runat="server" Text="提交" OnClick="btUp_Click" />
                                <input type="button" value="取消" onclick="javascript:history.go(-1)" />
                                </div>
        </div>
    </form>
</body>
</html>


